package com.zlzxm.shoesmarket.net.repository;

import com.zlzxm.shoesmarket.net.RetrofitClient;
import com.zlzxm.shoesmarket.net.api.GoodsApi;
import com.zlzxm.shoesmarket.net.respone.BaseResponse;
import com.zlzxm.shoesmarket.net.respone.RpGoods;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.Query;

/**
 * CREATE BY zlzxm ON 2021/5/21
 */
public class GoodsRepository {

    GoodsApi goodsApi = RetrofitClient.create(GoodsApi.class);

    public Observable<BaseResponse<RpGoods>> list(String articleNumber,
                                                        String pageNum,
                                                        String pageSize){

        return goodsApi.list(articleNumber,pageNum,pageSize);
    }

}
